<div class="row">
	<div class="col-md-12">
		<!-- Custom Tabs -->
		<div class="nav-tabs-custom">
			<ul class="nav nav-tabs">
				<li>
					<a href="<?php echo base_url();?>jobseekers/welcome"> Welcome</a>
				</li>
				<li>
					<a href="<?php echo base_url(); ?>jobseekers/documents"> Add a new document</a>
				</li>
				<li  class="active">
					<a href="<?php echo base_url(); ?>jobseekers/my-document">My documents</a>
				</li>
				
				
				<li class="dropdown pull-right">
					<a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-user"/></i> <?php echo $username; ?> <span class="caret"></span> </a>
					<ul class="dropdown-menu">
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>jobseekers/change-picture">Change Picture</a>
						</li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>jobseekers/change-password">Change Password</a>
						</li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>jobseekers/view-profile">Profile</a>
						</li>
						<li role="presentation" class="divider"></li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>jobseekers/logout">Logout</a>
						</li>
					</ul>
				</li>
				
			</ul>
			<div class="tab-content">
				<div class="tab-pane active" id="tab_1">
					
<div class="row">
	<div class="col-xs-12">
		<div class="box">
			<div class="box-header">
				<h3 class="box-title"><span style="color:#3C8DBC !important;"><span class="glyphicon glyphicon-folder-open"></span> &nbsp;Manage your documents </span></h3>
				<!--<a href="<?php echo base_url();?>control-jobseekers/insert-jobseeker"><button type="button" class="btn btn-primary pull-right" style="margin-right: 10px; margin-top: 5px;"><span class="glyphicon glyphicon-plus"></span> Add New</button></a>-->
			</div><!-- /.box-header -->
			<div class="box-body table-responsive">
				<table id="example2" class="table table-bordered table-hover">
					<thead>
						<tr>
							<th>Date</th>
							<th>Name</th>
							<th>Description</th>
							<th>Resume</th>
							<th>Action</th>
						</tr>
					</thead>
					<tbody>
						<?php
							foreach($my_documents->result() as $doc){
								$name=$doc->file_name;
								$type=$doc->file_type;
								$size=$doc->file_size;
								$desc=$doc->description;
								$is_resume=$doc->is_resume;
								$doc_id=$doc->seeker_document_id;
								$created_date=$doc->created_date;
						?>
								<tr>
									<td width="10%"><?php echo $created_date; ?></td>
									<td width="10%"><?php echo character_limiter($name,20); ?></td>
									<td width="20%"><?php echo character_limiter($desc,30); ?></td>
									<td width="10%"><?php echo $is_resume; ?></td>
									<td width="50%">
										<a href="<?php echo base_url(); ?>jobseekers/download-document/<?php echo $doc_id; ?>" class="btn btn-sm btn-info" title="Download" ><span class="glyphicon glyphicon-download"></span> Download</a>
										<a href="<?php echo base_url(); ?>jobseekers/modify-document/<?php echo $doc_id; ?>" class="btn btn-sm btn-primary" title="Modify"><span class="glyphicon glyphicon-edit"></span> Edit</a>
										<a href="<?php echo base_url(); ?>jobseekers/delete-document/<?php echo $doc_id; ?>" class="btn btn-sm btn-danger" onclick="return confirm('Are you sure want to delete ?');" title="Delete"><span class="glyphicon glyphicon-trash"></span> Delete</a>
									</td>
								</tr>
						<?php
						}
						?>
						

					</tbody>
					<tfoot>
						<tr>
							<th>Date</th>
							<th>Name</th>
							<th>Description</th>
							<th>Resume</th>
							<th>Action</th>

						</tr>
					</tfoot>
				</table>
			</div><!-- /.box-body -->
		</div><!-- /.box -->

	</div>

</div><!-- /.row -->
				</div><!-- /.tab-pane -->
				
			</div><!-- /.tab-content -->
		</div><!-- nav-tabs-custom -->
	</div><!-- /.col -->
</div>
